{extend name="public/base" /}

{block name="body"}
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <form action="{:url()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">班级名称 *<span class="check-tips">（必填,班级名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$_info.name}">
            </div>
        </div>
        
        <div class="form-item">
            <label class="item-label">选择课程 *</label>
            <div class="controls">
	            <select name="course_id" class="select2 input-large">
					{volist name=":get_course_list()" id="vo"}
						<option value="{$key}" {eq name="_info.course_id" value="$key"}selected{/eq}>{$vo}</option>
					{/volist}
				</select>
			</div>
        </div>
        
        <div class="form-item">
            <label class="item-label">上课时间 *<span class="check-tips">（周几）</span></label>
            <div class="controls">
	            <select name="day_week" class="input-large">
	            	<option value="0">请选择日期</option>
					<option value="1">周一</option>
					<option value="2">周二</option>
					<option value="3">周三</option>
					<option value="4">周四</option>
					<option value="5">周五</option>
					<option value="6">周六</option>
					<option value="7">周日</option>
				</select>
			</div>
        </div>
        
        <div class="form-item">
            <label class="item-label">上课时间 *<span class="check-tips">（必填,时:分:秒）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" placeholder="08:00:00" name="start_time" value="{$_info.start_time}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">下课时间 *<span class="check-tips">（必填,时:分:秒）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" placeholder="09:00:00" name="end_time" value="{$_info.end_time}">
            </div>
        </div>
        
        <div class="form-item">
        	<label class="item-label"></label>
        	<input type="hidden" name="id" value="{$_info.id}"/>
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
{/block}

{block name="script"}
    <script type="text/javascript">
    	Think.setValue("day_week", {$_info.day_week|default=0});
        //导航高亮
        highlight_subnav('{:url('Clbum/index')}');
    </script>
{/block}
